package com.homestay.beans;

import java.util.List;

/**
 * 用户表
 * @author hrh
 *
 */
public class UserBean {
	
	//用户ID
	private Integer u_id;
	
	//用户账号
	private String u_account;
	
	//用户密码
	private String 	u_pass;
	
	//一对一，用户表对用户信息表
	private UserInfoBean userInfo;
	
	//一对多，用户对收藏信息
	private List<CollectBean> collectBean;
	
	//一对多，用户对订单
	private List<OrderBean> orderList;
	
	//一对多，用户对评论
	private List<CommentBean> commentList;
	
	public UserInfoBean getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfoBean userInfo) {
		this.userInfo = userInfo;
	}
	public List<CollectBean> getCollectBean() {
		return collectBean;
	}
	public void setCollectBean(List<CollectBean> collectBean) {
		this.collectBean = collectBean;
	}
	public List<OrderBean> getOrderList() {
		return orderList;
	}
	public void setOrderList(List<OrderBean> orderList) {
		this.orderList = orderList;
	}
	public List<CommentBean> getCommentList() {
		return commentList;
	}
	public void setCommentList(List<CommentBean> commentList) {
		this.commentList = commentList;
	}
	private int flag;
	
	public Integer getU_id() {
		return u_id;
	}
	public void setU_id(Integer u_id) {
		this.u_id = u_id;
	}
	public String getU_account() {
		return u_account;
	}
	public void setU_account(String u_account) {
		this.u_account = u_account;
	}
	public String getU_pass() {
		return u_pass;
	}
	public void setU_pass(String u_pass) {
		this.u_pass = u_pass;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	@Override
	public String toString() {
		return "UserBean [u_id=" + u_id + ", u_account=" + u_account + ", u_pass=" + u_pass + ", userInfo=" + userInfo
				+ ", flag=" + flag + "]";
	}
	
}
